## Compiler and linker settings
DEFINES = -Wall -Werror -g 
LIBOGRE = OGRE
LIBS = $(LIBOGRE) CEGUI-OGRE CEGUI
CXX = g++
CXOGRE =  $(shell pkg-config --cflags $(LIBOGRE)) $(DEFINES)
CXXFLAGS = $(shell pkg-config --cflags $(LIBS)) $(DEFINES)
LD = g++
LDFLAGS = $(shell pkg-config --libs $(LIBS))

## Files to include in yourApp project
APP = trackball.o ogreapplication.o main.o 

## Compilation and linking occurs here
Visage: $(APP)
	$(LD) $(LDFLAGS) $(APP) -ltinyxml -o Visage

main.o : main.cpp 
	$(LD) $(CXOGRE) -c main.cpp   

trackball.o : trackball.h trackball.cpp
	$(LD) $(CXOGRE) -c trackball.cpp

ogreapplication.o : ogreapplication.h ogreapplication.cpp
	$(LD) $(CXOGRE) -c ogreapplication.cpp

## Clean up
clean:
	rm -f $(APP) Visage
